home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Newton Sample Code 1.2 / Proto Templates / Shell Game-2 / REAMDE.Shell Game < prev    next >
Encoding:
Text File  |  1993-10-04  |  896 b   |  29 lines  |  [TEXT/R*ch]

  1. This little sample shows how to keep two expando shells in sync.
  2. That is, make sure that the same item is expanded on both shells, or that
  3. all items are closed on both shells.
  4.  
  5. WARNING WARNING WARNING...
  6.  
  7. This stuff ONLY works if both expandoshells have the *same* number of
  8. lines!
  9.  
  10.  
  11. The stuff you want to look at (use shellOne for documentation):
  12.  
  13. viewClickScript:
  14.  
  15. This is where I make sure the same item is expanded. It is pretty
  16. straightforward.
  17.  
  18. ExpandNone
  19.  
  20. This is a little more skanky... Since this message is usually sent
  21. through a DeferredAction, and since you have to make sure your
  22. inherited message gets called (to do the right thing), you have
  23. to send a DoExpandNone message to the shell to setup the correct context.
  24.  
  25. i.e., ExpandNone is a real protoExpandoShell message, doExpandNone is
  26. one that I added to get around the context problem of AddDeferredAction.
  27.  
  28. share and enjoy ;-)
  29.